//
//  NNCalendarDayCell.m
//  TestObjectProduct
//
//  Created by fangshufeng on 16/9/29.
//  Copyright © 2016年 fangshufeng. All rights reserved.
//

#import "NNCalendarDayCell.h"


@interface NNCalendarDayCell ()
@property (weak, nonatomic) IBOutlet UILabel *day;

@end

@implementation NNCalendarDayCell

- (void)setCalendarModel:(NNCalendarModel *)calendarModel {
    _calendarModel = calendarModel;
    self.day.text = calendarModel.day;
//    self.hidden = calendarModel.hidenDay;
    if (calendarModel.calendarModelDayType == NNCalendarModelTypeToday) {
        self.day.text = @"今天";
       self.backgroundColor = [ UIColor greenColor];
    }else if (calendarModel.calendarModelDayType == NNCalendarModelTypeLastMonthDay) {
       self.backgroundColor = [UIColor blueColor];
       
    }else if (calendarModel.calendarModelDayType == NNCalendarModelTypeNextMonthDay) {
        self.backgroundColor =[UIColor redColor];
    }else {
        self.backgroundColor = [UIColor purpleColor];
    }
}
@end
